package com.lyz.dataStructure.algorithm.哔哩哔哩2020;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 18:57
 * @Description:
 **/

import java.util.Scanner;

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/8/20 18:57
 *@Description:
 **/
public class Main1 {
    public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            while (sc.hasNext()) {
                String s = sc.nextLine();
                String[] s1 = s.split(" ");
                StringBuilder sb = new StringBuilder();
                for (int i = s1.length-1; i >=0; i--) {
                    sb.append(s1[i]);
                    sb.append(" ");
                }
                System.out.println(sb);
            }
        }
}
